<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="客户证明材料">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <form action="${request.getContextPath()}/admin/attestation/userCertify.html" method="post">
                                <div class="toolbor-module search">
                                    <div class="formTit">用户名：</div>
                                    <input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                                    <div class="formTit">姓名：</div>
                                    <input type="text" name="realname" id="realname" value="请输入姓名" class="search-value">
                                    <input type="button" value="搜索" onclick="sousuo();"  class="input-button" >
                                </div>
                            </form>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <#if list??>

                                <table class="data-list">
                                    <tr class="header">
                                        <td>认证图片</td>
                                        <td>ID</td>
                                        <td>用户名</td>
                                        <td>真实姓名</td>
                                        <td>认证类型</td>
                                        <td>认证状态</td>
                                        <td>认证积分</td>
                                        <td>认证简介</td>
                                        <td>操作</td>
                                    </tr>

                                    <#list list as obj>
                                        <tr class="s">
                                            <td><#if obj.pic??><a target="_blank" href="${webroot}/${obj.pic}"><img src="${obj.pic}" style="border:1px solid #ccc; vertical-align:middle;" width="80px;" height="80px;"></a></#if></td>
                                            <td>${obj.id?c}</td>
                                            <td>${obj.user.showName!"-"}</td>
                                            <td>${obj.user.realName!"-"}</td>
                                            <td>${obj.attestationType.name!"-"}</td>
                                            <td><#if obj.status==1>审核通过<#elseif obj.status==3>审核没有通过<#else>未审核</#if></td>
                                            <td>${obj.jifen!"-"}</td>
                                            <td>${obj.name!"-"}</td>
                                            <td>
                                                <#if obj.status!=1><a onclick='alertPop("客户证明资料审核","url:get?userCertifyAudit.html?jifen=${obj.jifen}&pid=${obj.id?c}&type=userCertify",500,230,"true","","true","text");'
                                                                      href="javascript:void(0)">审核</a><#else>-</#if></td>
                                        </tr>
                                    </#list>
                                </table>
                                <#else> 暂无信息 </#if>
                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>

                                <!--翻页系统--{-->
                                <div class="container s_formPage">
                                    <#import "../../common/page.html" as pager> <@pager.pagination page=page
                                        url="/admin/attestation/userCertify.html" map=param
                                        style="style1" />

                                </div>
                                <!--翻页系统--}-->
                            </div>
                            <!--底部工具栏--}-->
                            <script>
                                var urls = '?search=true';
                                function sousuo(){
                                    var sou = "";
                                    var username = $("#username").val();
                                    var realname = $("#realname").val();
                                    if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                                        sou += "&username="+username;
                                    }
                                    if (realname!=null&&realname!=""&&realname!="undefine"&&realname!="请输入姓名"){
                                        sou += "&realname="+realname;
                                    }
                                    var status = $("#status").find(".open-selected").attr("data-value");
                                    if (status!=null&&status!=""&&status!="undefine"){
                                        sou += "&status="+status;
                                    }
                                    var url=urls+sou
                                    location.href=url;
                                }
                            </script>
                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
    </body>
</html>
